package com.chiancloud.shield.core.exception;

import com.chiancloud.shield.common.ShieldExitCodes;

/**
 * Created by wanghui on 14-8-20.
 */
public class ShieldException extends ServiceLaunchException implements ShieldExitCodes {
    public ShieldException() {
        super(EXIT_EXCEPTION_THROWN, "SliderException");
    }

    public ShieldException(int code, String message) {
        super(code, message);
    }

    public ShieldException(String s) {
        super(EXIT_EXCEPTION_THROWN, s);
    }

    public ShieldException(String s, Throwable throwable) {
        super(EXIT_EXCEPTION_THROWN, s, throwable);
    }

    public ShieldException(int code, String message, Object... args) {
        super(code, String.format(message, args));
    }


    public ShieldException(int code,
                           Throwable throwable,
                           String message,
                           Object... args) {
        super(code, String.format(message, args), throwable);
    }
}
